<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>更新文档</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
	</head>
	<body>
		<form name="form2" action="content_list.php" method="get" target="stafrm">
			<input type="hidden" name="nullfield" value="ok">
		</form>
		<form name="form1" action="makehtml_archives_action.php" method="get" target="stafrm">
			<table class="table shadow-sm my-3">
				<tr>
					<td colspan="2">更新文档</td>
				</tr>
				<tr>
					<td width="260">选择栏目：</td>
					<td>
						<?php
						if (empty($cid)) $cid="0";
						$tl = new TypeLink($cid);
						$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0);
						echo "<select name='typeid' class='admin-input-sm'>";
						if ($cid=="0") echo "<option value='0' selected>更新所有文档</option>";
						echo $typeOptions;
						echo "</select>";
						?>
					</td>
				</tr>
				<tr>
					<td>起始id：</td>
					<td>
						<input type="text" name="startid" id="startid" class="admin-input-sm">
						<span>（空或0表示从头开始）</span>
					</td>
				</tr>
				<tr>
					<td>结束id：</td>
					<td>
						<input type="text" name="endid" id="endid" class="admin-input-sm">
						<span>（空或0表示直到结束id）</span>
					</td>
				</tr>
				<tr>
					<td>每页更新：</td>
					<td>
						<input type="text" name="pagesize" id="pagesize" value="20" class="admin-input-sm">
						<span>（网页）</span>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<button type="button" name="b112" class="btn btn-success btn-sm" onclick="document.form1.submit();">开始更新</button>
						<button type="button" name="b113" class="btn btn-outline-success btn-sm" onclick="document.form2.submit();">所有文档</button>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>